package t2.server.xbee;

import java.util.ArrayList;


public class XBeeNetwork extends ArrayList<XBeeData> {
    private static final long serialVersionUID = -1110363372884985499L;

    private static XBeeNetwork network = null;

    private static boolean hasCoordinator = false;


    private XBeeNetwork() {
        super();
    };

    public static XBeeNetwork getNetwork() {
        if (network == null) {
            network = new XBeeNetwork();
        }

        return network;
    }

    public static boolean hasCoordinator() {
        return hasCoordinator;
    }

    public static void setHasCoordinator(boolean hasCoordinator) {
        XBeeNetwork.hasCoordinator = hasCoordinator;
    }
}
